/**
 * jims
 */
package com.jims.master.modules.doctor.service;

import com.jims.master.common.persistence.Page;
import com.jims.master.common.service.CrudService;
import com.jims.master.modules.doctor.dao.PregnantVisitDao;
import com.jims.master.modules.doctor.entity.PregnantVisit;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 孕妇手册-复诊记录Service
 * @author 王志明
 * @version 2017-07-21
 */
@Service
@Transactional(readOnly = true)
public class PregnantVisitService extends CrudService<PregnantVisitDao, PregnantVisit> {

	public PregnantVisit get(String id) {
		return super.get(id);
	}
	
	public List<PregnantVisit> findList(PregnantVisit pregnantVisit) {
		return super.findList(pregnantVisit);
	}
	
	public Page<PregnantVisit> findPage(Page<PregnantVisit> page, PregnantVisit pregnantVisit) {
		return super.findPage(page, pregnantVisit);
	}
	
	@Transactional(readOnly = false)
	public int save(PregnantVisit pregnantVisit) {
		return super.save(pregnantVisit);
	}
	
	@Transactional(readOnly = false)
	public int delete(PregnantVisit pregnantVisit) {
		return super.delete(pregnantVisit);
	}


    public int getVisitNum(PregnantVisit pregnantVisit) {
        return dao.getVisitNum(pregnantVisit);
    }
}